/*************************************************************
*                                                             *
*                           AT24C512.h                                *
*                                                             *
**************************************************************
描述：   的头文件
硬件：
***************************************************************/
#ifndef   _AT24C512_H
#define   _AT24C512_H

//地址格式：器件特征地址（1010）+3位编码+0
#define AT24_Addr   0xA0      //读取时的地址
/***********************函数声明区*****************************/
void AT24C512_WriteByte(unsigned char high_addr,unsigned char low_addr,unsigned char Data);
void AT24C512_Write(unsigned char high_addr,unsigned char low_addr,unsigned char *array,unsigned char num);
unsigned char AT24C512_ReadByte(unsigned char high_addr,unsigned char low_addr);
void AT24C512_Read(unsigned char high_addr,unsigned char low_addr,unsigned char *array,unsigned char num);
void AT24C512_WaitforEepromStandBy(void);
/**************************************************************/
#endif